package com.saihai.jiankang.selectItem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.saihai.jiankang.selectItem.mapper.WorkflowSelectitemMapper;
import com.saihai.jiankang.selectItem.domain.WorkflowSelectitem;
import com.saihai.jiankang.selectItem.service.IWorkflowSelectitemService;

/**
 * 字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-01
 */
@Service
public class WorkflowSelectitemServiceImpl implements IWorkflowSelectitemService 
{
    @Autowired
    private WorkflowSelectitemMapper workflowSelectitemMapper;

    /**
     * 查询字典
     * 
     * @param fieldid 字典主键
     * @return 字典
     */
    @Override
    public WorkflowSelectitem selectWorkflowSelectitemByFieldid(Long fieldid)
    {
        return workflowSelectitemMapper.selectWorkflowSelectitemByFieldid(fieldid);
    }

    /**
     * 查询字典列表
     * 
     * @param workflowSelectitem 字典
     * @return 字典
     */
    @Override
    public List<WorkflowSelectitem> selectWorkflowSelectitemList(WorkflowSelectitem workflowSelectitem)
    {
        return workflowSelectitemMapper.selectWorkflowSelectitemList(workflowSelectitem);
    }

    /**
     * 新增字典
     * 
     * @param workflowSelectitem 字典
     * @return 结果
     */
    @Override
    public int insertWorkflowSelectitem(WorkflowSelectitem workflowSelectitem)
    {
        return workflowSelectitemMapper.insertWorkflowSelectitem(workflowSelectitem);
    }

    /**
     * 修改字典
     * 
     * @param workflowSelectitem 字典
     * @return 结果
     */
    @Override
    public int updateWorkflowSelectitem(WorkflowSelectitem workflowSelectitem)
    {
        return workflowSelectitemMapper.updateWorkflowSelectitem(workflowSelectitem);
    }

    /**
     * 批量删除字典
     * 
     * @param fieldids 需要删除的字典主键
     * @return 结果
     */
    @Override
    public int deleteWorkflowSelectitemByFieldids(Long[] fieldids)
    {
        return workflowSelectitemMapper.deleteWorkflowSelectitemByFieldids(fieldids);
    }

    /**
     * 删除字典信息
     * 
     * @param fieldid 字典主键
     * @return 结果
     */
    @Override
    public int deleteWorkflowSelectitemByFieldid(Long fieldid)
    {
        return workflowSelectitemMapper.deleteWorkflowSelectitemByFieldid(fieldid);
    }
}
